<template>
    <div class="scroll-view">
      <div class="scroll-view-head">
        <slot name="head"></slot>
      </div>
      <div class="scroll-view-cont">
        <slot></slot>
      </div>
      <div class="scroll-view-foot">
        <slot name="foot"></slot>
      </div>
    </div>
</template>

<script>
  export default {
    name: "scrollView"
  }
</script>

<style lang="scss" scoped>
.scroll-view{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  .scroll-view-cont{
    flex: 1;
    overflow: auto;
  }
}
</style>
